package com.baiwei.vpnapi.dao;

import com.baiwei.vpnapi.entity.VpnPackage;
import com.baiwei.vpnapi.entity.respentity.DiscountPackage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
public interface VpnPackageMapper extends BaseMapper<VpnPackage> {
    // 获取分享奖励套餐id
    Integer getShareBonusPackageId();
    // 获取评价奖励套餐id
    Integer getEvaBonusPackageId();
    // 获取所有有效套餐列表
    List<VpnPackage> getAvailablePackage();
    // 获取所有折扣信息套餐
    List<DiscountPackage> getAllDiscountPackage();
    // 获取某条折扣套餐信息
    DiscountPackage getDiscountPackageById(@RequestParam("packageId") Integer packageId);
}
